package com.ee.chat.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ee.chat.common.entity.ChannelConfig;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author Shane
 * @since 2020-02-16
 */
public interface ChannelConfigMapper extends BaseMapper<ChannelConfig> {
    List<ChannelConfig> selectAll();

    /**
     * 获取推广地址列表
     * @Author AppiJ
     * @Date 2020/4/2 17:31
     * @param pid
     * @return
     */
    IPage<Map<String, Object>> queryPromoteUrlList(Page page, @Param("pid") Integer pid);

    IPage<Map<String, Object>> list(Page page, @Param("status") Integer status);
}